import router from '@/router'
function RouteData(route) {
  let ParentData = {}
  router.options.routes.forEach(item => {
    if (item.name === route.path.split('/')[1]) {
      item.children.forEach((childe) => {
        if (childe.name === route.path.split('/')[2]) {
          ParentData = childe.meta.TableText
        }
      })
    }
  })
  console.dir(router)
  return ParentData
}
export default RouteData
